package cn.itsnkkka;

import java.util.Scanner;

public class Work_05 {
    //按题目要求创建3个构造方法分别求最大值，乘积和字符串匹配

    public Work_05(int a, int b){
        System.out.println("最大值是：" + (a > b ? a : b));
    }

    public Work_05(int a, int b, int c){
        System.out.println("三数的乘积是：" + (a * b * c));
    }

    public Work_05(String a, String b){
        System.out.println(
                "两字符串" + (a.equals(b) ? "相同" : "不相同")
        );
    }

    public static void main(String[] dasd) {
        //键盘录入3个整型和2个字符串
        Scanner scanner = new Scanner(System.in);
        int n1 = scanner.nextInt();
        int n2 = scanner.nextInt();
        int n3 = scanner.nextInt();
        String str1 = scanner.next();
        String str2 = scanner.next();

        Work_05 c=new Work_05(n1,n2);
        Work_05 c1=new Work_05(n1,n2,n3);
        Work_05 c2=new Work_05(str1,str2);
    }
}
